package com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.h5;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.base.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class OrderItem extends BaseEntity {
    @Schema(description = "订单id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId;

    @Schema(description = "商品sku编号")
    private Long skuId;

    @Schema(description = "商品sku名字")
    private String skuName;

    @Schema(description = "商品sku图片")
    private String thumbImg;

    @Schema(description = "商品sku价格")
    private BigDecimal skuPrice;

    @Schema(description = "商品购买的数量")
    private Integer skuNum;
}